package com.bt7274.pojo;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 管理员操作日志表 ：管理员审核记录
 * </p>
 *
 * @author hp
 * @since 2025-03-25
 */
public class Log implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer id;

    /**
     * 操作管理员id
     */
    private String adminId;

    /**
     * 操作类型，0：不通过，1：通过，2：审核中
     */
    private Integer action;

    /**
     * 操作目标（用户/帖子ID）
     */
    private String targetId;

    /**
     * 操作详情
     */
    private String details;

    /**
     * 操作时间
     */
    private LocalDateTime executedTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAdminId() {
        return adminId;
    }

    public void setAdminId(String adminId) {
        this.adminId = adminId;
    }

    public Integer getAction() {
        return action;
    }

    public void setAction(Integer action) {
        this.action = action;
    }

    public String getTargetId() {
        return targetId;
    }

    public void setTargetId(String targetId) {
        this.targetId = targetId;
    }

    public String getDetails() {
        return details;
    }

    public void setDetails(String details) {
        this.details = details;
    }

    public LocalDateTime getExecutedTime() {
        return executedTime;
    }

    public void setExecutedTime(LocalDateTime executedTime) {
        this.executedTime = executedTime;
    }

    @Override
    public String toString() {
        return "Log{" +
        "id = " + id +
        ", adminId = " + adminId +
        ", action = " + action +
        ", targetId = " + targetId +
        ", details = " + details +
        ", executedTime = " + executedTime +
        "}";
    }
}
